package health.lm.com.shop.presenter;

import java.util.ArrayList;
import java.util.List;

import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.shop.activity.HLDynamicDetailActivity;
import health.lm.com.shop.entity.HLDynamicDetailEntity;

/**
 * Created by Android Studio .
 * Project：hlian health.lm.com.home.presenter
 * Date：2019/8/12 13:39
 * Introduce：链详情
 */
public class HLDynamicDetailPresenter extends XPresent<HLDynamicDetailActivity> {
    public void getData(String id) {
        HLDynamicDetailEntity detailEntity = new HLDynamicDetailEntity();
        List<HLDynamicDetailEntity.CommentEntity> entityList = new ArrayList<>();
        for (int a = 0; a < 5; a++) {
            HLDynamicDetailEntity.CommentEntity entity = new HLDynamicDetailEntity.CommentEntity();
            entity.setAvatar("http://image109.360doc.com/DownloadImg/2018/03/1008/126782666_1_2018031008485635.jpeg");
            entity.setContent("临沂市供应链金融协会工作人员介绍了区域商票临沂模式，讲解了《关于进一步推进商业承兑汇票业务发展的通知》、《白名单企业商业承兑汇票额度管理暂行办法》、《商业承兑汇票主办行管理暂行办法》等文件，介绍了协会的职能及有关活动。培训企业财务人员对商票业务的操作与风险管控，加强企业自律，鼓励企业建立的商票部门，以专业人才推进商票业务发展，强调了企业不得签发无真实贸易背景的票据。");
            entity.setId("1");
            entity.setLikeNum("224");
            entity.setName("路人甲");
            entity.setTime("20分钟前");
            entityList.add(entity);
        }
        detailEntity.setCommentEntityList(entityList);
        if (hasV()) getV().setNewData(detailEntity);
    }
}
